﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccess;
using EntityDaoLibrary;

namespace BusinessRules
{
    public class ChargeItemInfoRules
    {
        public DataSet GetChargeInfoByInhosID(string inhosid)
        {
            IDataAccess data = DataAccessFactory.instance.CreateDataAccess();
            data.Open();
            try
            {
                ChargeItemInfoDAO dao = new ChargeItemInfoDAO(data);
                return dao.GetChargeInfoByInhosID(inhosid);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message, e);
            }
            finally
            {
                data.Close();
            }

 
        }
      

    }
}
